package com.edu.pojo;

import java.util.Date;

/**
 * @作者 five-five
 * @创建时间 2020/12/11
 */
public class Student {
    private String xh;
    private String xm;
    private String xb;
    private String ksh;
    private String dh;
    private Date sr;
    private String dz;
    private String sfzjh;

    public Student() {
    }

    public Student(String xh, String xm, String xb, String ksh, String dh, Date sr, String dz, String sfzjh) {
        this.xh = xh;
        this.xm = xm;
        this.xb = xb;
        this.ksh = ksh;
        this.dh = dh;
        this.sr = sr;
        this.dz = dz;
        this.sfzjh = sfzjh;
    }

    @Override
    public String toString() {
        return "Student{" +
                "xh='" + xh + '\'' +
                ", xm='" + xm + '\'' +
                ", xb='" + xb + '\'' +
                ", ksh='" + ksh + '\'' +
                ", dh='" + dh + '\'' +
                ", sr=" + sr +
                ", dz='" + dz + '\'' +
                ", sfzjh='" + sfzjh + '\'' +
                '}';
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    public String getKsh() {
        return ksh;
    }

    public void setKsh(String ksh) {
        this.ksh = ksh;
    }

    public String getDh() {
        return dh;
    }

    public void setDh(String dh) {
        this.dh = dh;
    }

    public Date getSr() {
        return sr;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Student)) return false;

        Student student = (Student) o;

        if (getXh() != null ? !getXh().equals(student.getXh()) : student.getXh() != null) return false;
        if (getXm() != null ? !getXm().equals(student.getXm()) : student.getXm() != null) return false;
        if (getXb() != null ? !getXb().equals(student.getXb()) : student.getXb() != null) return false;
        if (getKsh() != null ? !getKsh().equals(student.getKsh()) : student.getKsh() != null) return false;
        if (getDh() != null ? !getDh().equals(student.getDh()) : student.getDh() != null) return false;
        if (getSr() != null ? !getSr().equals(student.getSr()) : student.getSr() != null) return false;
        if (getDz() != null ? !getDz().equals(student.getDz()) : student.getDz() != null) return false;
        return getSfzjh() != null ? getSfzjh().equals(student.getSfzjh()) : student.getSfzjh() == null;
    }

    @Override
    public int hashCode() {
        int result = getXh() != null ? getXh().hashCode() : 0;
        result = 31 * result + (getXm() != null ? getXm().hashCode() : 0);
        result = 31 * result + (getXb() != null ? getXb().hashCode() : 0);
        result = 31 * result + (getKsh() != null ? getKsh().hashCode() : 0);
        result = 31 * result + (getDh() != null ? getDh().hashCode() : 0);
        result = 31 * result + (getSr() != null ? getSr().hashCode() : 0);
        result = 31 * result + (getDz() != null ? getDz().hashCode() : 0);
        result = 31 * result + (getSfzjh() != null ? getSfzjh().hashCode() : 0);
        return result;
    }

    public void setSr(Date sr) {
        this.sr = sr;
    }

    public String getDz() {
        return dz;
    }

    public void setDz(String dz) {
        this.dz = dz;
    }

    public String getSfzjh() {
        return sfzjh;
    }

    public void setSfzjh(String sfzjh) {
        this.sfzjh = sfzjh;
    }
}
